import { Context,  } from "koa";

export const requestLog = async (ctx: Context, next: Function) => {
    const now = new Date().getTime();
    await next();
    let endTime = new Date().getTime();
    console.log(`请求地址：${ctx.path}, 响应时间： ${endTime - now}ms`);
}